package com.smartum.mpr.client.presenter;

import com.google.gwt.event.shared.HandlerManager;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
import com.smartgwt.client.util.SC;
import com.smartgwt.client.widgets.tab.TabSet;
import com.smartgwt.client.widgets.tab.events.TabClickEvent;
import com.smartgwt.client.widgets.tab.events.TabIconClickHandler;
import com.smartgwt.client.widgets.tab.events.TabSelectedEvent;
import com.smartgwt.client.widgets.tab.events.TabSelectedHandler;
import com.smartum.mpr.client.event.TabClickHandler;
import com.smartum.mpr.client.view.ContentViewerView;

/**
 * Presenter class for main content viewer.
 */
public class ContentViewerPresenter implements Presenter {
    public interface Display {
        TabSet getTabSet();

        Widget getContentViewerWidget();
    }

    private final Display display;
    private HandlerManager eventBus;

    public ContentViewerPresenter(Display display, HandlerManager eventBus) {
        this.display = display;
        this.eventBus = eventBus;
    }

    public void go(HasWidgets container) {
        container.clear();
        container.add(this.display.getContentViewerWidget());
    }

    public void bind() {
    }

    public HandlerManager eventBus() {
        return this.eventBus;
    }
}
